Page({
  onShareAppMessage() {
    return {
      title: 'open-type',
      path: 'packageComponent/pages/content/button_openType/open-type'
    }
  },

  data: {
    schema: [],
    formData: {
      disableContextMenu:false
    },
    title: '',
    result: '',
    zh:'',
    apiType: '',
    remark: '',
    webUrl: '',
    apiName: '',
  },
  onLoad(options) {
    this.setData({
      apiType: options.zh,
      title: options.title,
      zh: options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
  },
  getFormData(e){
    this.setData({
      formData:e.detail.formData
    })
  },
  handleContact(e) {
    console.log(e.detail)
    this.setData({
      result:e.detail
    })
  },
  onLiveActivityCreate(e) {
    console.log(e.detail.code)
    this.setData({
      result:e.detail
    })
  },
  getPhoneNumber(e){
    this.setData({
      result:e.detail
    })
  },
  getRealtimePhoneNumber(e){
    this.setData({
      result:e.detail
    })
  },
  getUserInfo(e) {
    this.setData({
      result:e.detail
    })
  },
  launchAppError(e) {
    this.setData({
      result:e.detail
    })
  },
  agreePrivacyAuthorization(e) {
    this.setData({
      result:e.detail
    })
  }
})
